import { post } from "./api"
import { CheckSecretSchema, Response, SavedSchema } from "./schema"

export const checkPassword = (secret : string) : Promise<Response<CheckSecretSchema>> => {
	return post('/secret/check', {
		secret
	})
}

export const createPassword = (secret : string) : Promise<Response<SavedSchema>> => {
	return post('/secret/create', {
		secret
	})
}